<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, user-scalable=no">
	<title>IM</title>
	<link rel="stylesheet" href="__STATIC__/js/im/im.css">
</head>
<body>

<div id="rcs-app"></div>
<div class="customer-service" style="display: none;"></div>
</body>
<script src="https://cdn.bootcss.com/jquery/3.3.1/jquery.min.js"></script>
<!--
SDK 文档：http://www.rongcloud.cn/docs/web.html#sdk
-->
<script src="https://cdn.ronghub.com/RongIMLib-2.3.0.js"></script>
<!-- <script src="./libs/RongEmoji.js"></script> -->
<script src="https://cdn.ronghub.com/RongEmoji-2.2.6.min.js"></script>


<script src="__STATIC__/js/im/libs/utils.js"></script>
<script src="__STATIC__/js/im/libs/qiniu-upload.js"></script>

<script src="__STATIC__/js/im/template.js"></script>
<script src="__STATIC__/js/im/emoji.js"></script>
<script src="__STATIC__/js/im/im.js"></script>

<!-- 实例化 -->
<script>
	/*
    具体使用时：
    1：切换到自己的 key 和 token
    2：移除 im.js 里的 sendTextMessage(instance); 这行代码
    3：自行二次开发
    4：参考
        - 用户数据处理 http://support.rongcloud.cn/kb/NjQ5
        - 消息状态 http://support.rongcloud.cn/kb/NjMz
        - 集成指南 https://rongcloud.github.io/websdk-demo/integrate/guide.html
        - 其他 demo https://github.com/rongcloud/websdk-demo
    */
	(function(){
		var appKey = "p5tvi9dspe834";
		var token = "mCPERsm1mKdKvm+fuCCAoVh9jxw+LrAt6rKizqYUXwk=@rpkq.cn.rongnav.com;rpkq.cn.rongcfg.com";

		RCS.init({
			appKey: appKey,
			token: token,
			target: document.getElementById('rcs-app'),
			showConversitionList: true,
			templates: {
				button: ['<div class="rongcloud-consult rongcloud-im-consult">',
					'</div>'].join('')//"templates/button.html",
				// chat: "templates/chat.html",
				// closebefore: 'templates/closebefore.html',
				// conversation: 'templates/conversation.html',
				// endconversation: 'templates/endconversation.html',
				// evaluate: 'templates/evaluate.html',
				// imageView: 'templates/imageView.html',
				// leaveword: 'templates/leaveword.html',
				// main: 'templates/main.html',
				// message: 'templates/message.html',
				// messageTemplate: 'templates/messageTemplate.html',
				// userInfo: 'templates/userInfo.html',
			},
			extraInfo: {

			}
		});
	})()

	RCS.showCommon();

</script>

</html>